package com.example.swim.Dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.swim.Pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author LiYa
 * @create 2022-07-17 19:45
 */
@Repository
@Mapper
public interface StudentDao extends BaseMapper<Student> {
    List<Student> findAll();
    void  insertStudent(Student stu);
    void  delStudent(Integer id);
    void updateStudent(Student stu);
    Student findStu(Student stu);
//    班级一对多查询要用到
    Student find(Integer cid);
    void insertNew(Student student);
    Integer checkFirst(Student student);
    void updateFirst(Student student);
    void updatePwd(Student studet);
    void addAid(Integer aid,Integer id);
}
